#ifndef _NETWORKEXCEPTION_H
#define _NETWORKEXCEPTION_H

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#pragma once
#include <Windows.h>
#include <sstream>
#include <string>

using namespace std;

namespace net
{
class NetworkException
{
public:
	NetworkException(int);
	NetworkException(string);
	virtual ~NetworkException(void);
	virtual string getMessage(void);
private:
	string getErrorMessage(int);
	int errorCode;
	string customMessage;
	static int NO_ERROR_CODE;
};
};

#endif
